package service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import dao.BookDao;
import pojo.Book;
import service.BookManager;
@Service
public class BookManagerImpl implements BookManager {
	@Autowired(required=true)
	private BookDao bd;
	
	@Transactional
	@Override
	public int addBook(Book b) {
		System.out.println("add Book in Service.......");
		
		return bd.addBook(b);
	}

}
